package com.xinsoft.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinsoft.entity.po.SysMaterial;
import com.xinsoft.entity.vo.SysMaterialDetailVo;
import com.xinsoft.entity.vo.SysMaterialVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author xuhb
* @description 针对表【sys_material(物料)】的数据库操作Mapper
* @createDate 2023-05-23 13:14:54
* @Entity com.xinsoft.entity.po.SysMaterial
*/
public interface SysMaterialMapper extends BaseMapper<SysMaterial> {


    IPage<SysMaterialVo> getMaterialList(Page<?> page, @Param(Constants.WRAPPER) Wrapper<?> queryWrapper);

    SysMaterialDetailVo getMaterialDetailById(@Param("id") Integer id);

    void insertOrUpdateBatch(List<SysMaterial> sysMaterialList);
}




